package com.hdoit.apollo.web.billing.modelconfig;
import com.hdoit.apollo.web.shop.providers.CustomerProvider;
import com.hdoit.apollo.web.shop.providers.StaffProvider;
import com.tennetcn.web.component.attribute.DisplayNameAttribute;
import com.tennetcn.web.component.attribute.DropDownListAttribute;
import com.tennetcn.web.component.attribute.base.ModelMetadataAttributeConfiguration;

/**
 * @author      tancongzhu
 * @email       
 * @createtime  2018年04月26日 15:25:58
 * @comment
 */
public class BillingSearchConfig extends ModelMetadataAttributeConfiguration{
    public BillingSearchConfig(){
        this.setProperty("billingNo")
            .hasAttribute(new DisplayNameAttribute("订单号"));

        this.setProperty("customerId")
            .hasAttribute(new DisplayNameAttribute("客户"))
        	.hasAttribute(new DropDownListAttribute(new CustomerProvider()));
        
        this.setProperty("createUserId")
	        .hasAttribute(new DisplayNameAttribute("开单人"))
	    	.hasAttribute(new DropDownListAttribute(new StaffProvider()));
        
        this.setProperty("startDate")
        	.hasAttribute(new DisplayNameAttribute("开始时间"));

	    this.setProperty("endDate")
	        .hasAttribute(new DisplayNameAttribute("至"));
    }
}
